package services.impl;

import services.ClienteService;
import dao.ClienteDAO;
import dao.impl.ClienteDAOImpl;
import dominio.Cliente;

public class ClienteServiceImpl implements ClienteService {

	private static ClienteServiceImpl instancia = null;
	
	private ClienteServiceImpl(){
		cDAO = ClienteDAOImpl.getInstancia();
	}
	
	public static ClienteServiceImpl getInstancia(){
		if(instancia == null){
			instancia = new ClienteServiceImpl();
		}
		return instancia;
	}
	
	private ClienteDAO cDAO;
	
	public Cliente findByID(Integer id) {
		return cDAO.findByID(id);
	}
	
	

}
